package com.thin.tomcat;

public abstract class BaseServlet {

	public abstract void doGet(Request request, Response response);

	public abstract void doPost(Request myRequest, Response response);

	public void service(Request request, Response response) {
		if (request.getMethod().equalsIgnoreCase("post")) {
			doPost(request, response);
		} else if (request.getMethod().equalsIgnoreCase("get")) {
			doGet(request, response);
		}
	}
}
